package Oop.ooptest.test08;

public class Teacher extends Person{

    public Teacher() {
    }

    public Teacher(String name, String sex, int age) {
        super(name, sex, age);
    }

    @Override
    public void run() {
        super.run();
    }

    @Override
    public void earnMoney() {
        System.out.println("老师靠讲课挣钱");
    }

    @Override
    public int earnMoneyMonth() {
        return 998;
    }
}
